#ifndef SCENESUBCLASS_H
#define SCENESUBCLASS_H

#include <QGraphicsScene>
#include <QGraphicsSceneMouseEvent>
#include <QGraphicsSceneContextMenuEvent>
#include <QMenu>
class sceneSubClass : public QGraphicsScene
{
public:
    sceneSubClass();
    void setDrawGrid(bool val);
protected:
    void mousePressEvent(QGraphicsSceneMouseEvent *event);
    void mouseReleaseEvent(QGraphicsSceneMouseEvent *event);
    void contextMenuEvent(QGraphicsSceneContextMenuEvent *event);
    void drawBackground(QPainter *painter, const QRectF &rect);

private:
    bool isDrawGrid;
};

#endif // SCENESUBCLASS_H
